<template>
  <mobile
    class="mobile"
    v-if="isMobileTerminal"
    :data="categoryStore.category"
  ></mobile>
  <pc v-else :data="categoryStore.category" class="pc"></pc>
</template>

<script setup>
import { isMobileTerminal } from '@/utils/flexible'
import mobile from './mobile/index.vue'
import pc from './pc/index.vue'
import { useCategoryStore } from '@/store/category'

const categoryStore = useCategoryStore()
categoryStore.getCategoryData()
</script>

<style lang="scss" scoped></style>
